package com.basic.utils;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ProjectExceptionAdvice {
    @ExceptionHandler
    public Response disposeException(Exception exception)
    {
        exception.printStackTrace();
        return new Response(3, exception.getMessage());
    }
}
